package cn.seaboot.admin.core.bean;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
* POJO
* 系统配置列表 [t_sys_variable]
* @author ChenSS on 2018/6/20.
*/
@Schema(description = "系统配置列表 [t_sys_variable] 实体类")
public class Variable implements Serializable {

    private static final long serialVersionUID = -7138050614992211593L;
    /**
     * ID
     */
    @NotNull
    @Size(max = 32)
    @Schema(description = "ID")
    private String id;
    /**
     * 归属账号
     */
    @Size(max = 32)
    @Schema(description = "归属账号")
    private String userId;
    /**
     * 名称
     */
    @Size(max = 32)
    @Schema(description = "名称")
    private String name;
    /**
     * 标签
     */
    @Size(max = 32)
    @Schema(description = "标签")
    private String label;
    /**
     * 内容
     */
    @Size(max = 65535)
    @Schema(description = "内容")
    private String content;
    /**
     * 简介
     */
    @Size(max = 65535)
    @Schema(description = "简介")
    private String description;
    /**
     * 配置类型
     */
    @Size(max = 32)
    @Schema(description = "配置类型")
    private String format;
    /**
     * 禁用
     */
    @Schema(description = "禁用")
    private Boolean disabled;
    /**
     * 只读
     */
    @Schema(description = "只读")
    private Boolean readonly;
    /**
     * 创建日期
     */
    @Schema(description = "创建日期")
    private LocalDateTime gmtCreate;
    /**
     * 修改日期
     */
    @Schema(description = "修改日期")
    private LocalDateTime gmtModified;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Boolean getReadonly() {
        return readonly;
    }

    public void setReadonly(Boolean readonly) {
        this.readonly = readonly;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "Variable{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", name='" + name + '\'' +
                ", label='" + label + '\'' +
                ", content='" + content + '\'' +
                ", description='" + description + '\'' +
                ", format='" + format + '\'' +
                ", disabled=" + disabled +
                ", readonly=" + readonly +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
